<?php
namespace App\Services\Finance;
use App\Services\Finance\NoticeAndPay\NoticeAndPayLogic;
use PHPUnit\Framework\Error\Notice;

class NoticeAndPay
{
    //差账管理 列表 搜索
    public function priceDifference($data)
    {
        $data = init_array($data, ['time' =>'']);
        return (new NoticeAndPayLogic())->priceDifference($data);
    }

    //差账管理 添加    
    public function addPriceDifference($data)
    {
        if (empty($data)) {
            return null_data($data,"参数不能为空！");
        }
        $data = init_array($data,["name"=>"", "money"=>"", "status"=>"", "time"=>"", "remark"=>""]);
        ValidateNoticeAndPay::checkValidate($data, ['name','money','time','remark']);

        return (new NoticeAndPayLogic())->addPriceDifference($data);
    }

    //通知 列表
    public function financeInform($data)
    {
        $data = init_array($data,[]);
       return (new NoticeAndPayLogic())->financeInform($data);
    }

    //支付中心 7个统计数据
    public function financeCount($data)
    {
        $data = init_array($data,[]);
       return (new NoticeAndPayLogic())->financeCount($data);
    }
    //支付中心 音乐人 已完成提现 列表
    public function alwayslist1($data)
    {
        $data = init_array($data,["name"=>"", "action"=>""]);
       return (new NoticeAndPayLogic())->alwayslist1($data);
    }
    //支付中心 音乐人 已申请提现 列表
    public function applylist1($data)
    {
        $data = init_array($data,["name"=>"", "action"=>""]);
       return (new NoticeAndPayLogic())->applylist1($data);
    }
    //支付中心 音乐人 当前未提现 列表
    public function nolist1($data)
    {
        $data = init_array($data,["name"=>"", "action"=>""]);
       return (new NoticeAndPayLogic())->nolist1($data);
    }
    //支付中心 代理 已完成提现 列表
    public function alwayslist2($data)
    {
        $data = init_array($data,["name"=>"", "action"=>""]);
       return (new NoticeAndPayLogic())->alwayslist2($data);
    }
    //支付中心 代理 已申请提现 列表
    public function applylist2($data)
    {
        $data = init_array($data,["name"=>"", "action"=>""]);
       return (new NoticeAndPayLogic())->applylist2($data);
    }
    //支付中心 代理 当前未提现 列表
    public function nolist2($data)
    {
        $data = init_array($data,["name"=>"", "action"=>""]);
       return (new NoticeAndPayLogic())->nolist2($data);
    }

    public function payListNoPage()
    {
        return (new NoticeAndPayLogic())->payListNoPage();
    }

}
